{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block body %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"加油申请审核",back:1} %}
    {#<mu-tabs :value.sync="tab" color="amber600" indicator-color="lightBlue900" center>#}
        {#<mu-tab>待审核</mu-tab>#}
        {#<mu-tab>已审核</mu-tab>#}
    {#</mu-tabs>#}
    <div class="pad10" v-if="tab == 1">
        <div class="fs8 c11">
            <div class="bc13 padb5 round5 mart5  bdc12" v-for="item,index in list">
                <div class="flrc padl5 padr5 c11 lh2 padt3 padb3">
                    <div class="">车牌号：</div>
                    <div class="flex1 fs14">[[item.Car_number]]</div>
                    <div class="c2">
                    </div>
                </div>
                <div class="flrc pad5">
                    <div class="">申请金额：</div>
                    <div class="flex1">[[item.CarFuelLog_money]]</div>
                    <div class="">油料类型：</div>
                    <div class="flex1">[[item.ConfCat_name]]</div>

                </div>
                <div v-if="item.CarFuelLog_check_Date == null">
                    <div class="padl5 padr5">
                        <mu-text-field label="审核意见" v-model="item.CarFuelLog_check_Text"  multi-line :rows="3" :rows-max="6"  full-width></mu-text-field>
                    </div>
                    <div class="flrc">
                        <div class="fs8 c11 padl5 padr5">
                            <mu-button round color="primary" @click="submit(index)">审核通过</mu-button>
                        </div>
                        <div class="fs8 c11 padl5 padr5">
                            <mu-button round color="warning" @click="del(index)">拒绝并删除</mu-button>
                        </div>
                    </div>
                </div>
                <div v-if="item.CarFuelLog_check_Date != null">
                    <div class="bdtso pad5 marl5 marr5 flrc bcf">
                        <div class="">审核日期：</div>
                        <div class="flex1" v-if="item.CarFuelLog_check_Date != null">[[item.CarFuelLog_check_Date ]]</div>
                        <div class="flex1" v-if="item.CarFuelLog_check_Date == null">等待审核</div>
                    </div>
                    <div class="bdtso pad5 marl5 marr5 flrc bcf">
                        <div class="">审核意见：</div>
                        <div class="flex1" v-if="item.CarFuelLog_check_Text != null">[[item.CarFuelLog_check_Text ]]</div>
                        <div class="flex1" v-if="item.CarFuelLog_check_Text == null">等待审核</div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    {#<div class="pad10" v-if="tab == 0">#}
        {#<div class="fs8 c11">#}
            {#<div class="bc13 padb5 round5 mart5  bdc12" v-for="item in list">#}
                {#<div class="flrc padl5 padr5 c11 lh2 padt3 padb3">#}
                    {#<div class="">车牌号：</div>#}
                    {#<div class="flex1 fs14">[[item.Car_number]]</div>#}
                    {#<div class="c2">#}
                        {#<span class="warning">【待审核】</span>#}
                        {#<span class="green">【已通过】</span>#}
                    {#</div>#}
                {#</div>#}
                {#<div class="flrc pad5">#}
                    {#<div class="">申请金额：</div>#}
                    {#<div class="flex1">[[item.CarFuelLog_money]]</div>#}
                    {#<div class="">油料类型：</div>#}
                    {#<div class="flex1">[[item.ConfCat_name]]</div>#}

                {#</div>#}
                {#<div class="bdtso pad5 marl5 marr5 flrc bcf">#}
                    {#<div class="">审核日期：</div>#}
                    {#<div class="flex1" v-if="item.CarFuelLog_check_Date != null">[[item.CarFuelLog_check_Date ]]</div>#}
                    {#<div class="flex1" v-if="item.CarFuelLog_check_Date == null">等待审核</div>#}
                {#</div>#}
                {#<div class="bdtso pad5 marl5 marr5 flrc bcf">#}
                    {#<div class="">审核意见：</div>#}
                    {#<div class="flex1" v-if="item.CarFuelLog_check_Text != null">[[item.CarFuelLog_check_Text ]]</div>#}
                    {#<div class="flex1" v-if="item.CarFuelLog_check_Text == null">等待审核</div>#}
                {#</div>#}
            {#</div>#}
        {#</div>#}
    {#</div>#}
{% endblock %}
